package com.kifas.model.xml;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class BarangStokModel implements Serializable {

	private static final long serialVersionUID = 1557232054203752211L;
	
	private Long idBarangStok;
    @XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;
	private Long stokMinimal;
	private Long stokMaksimal;
	
	public BarangStokModel() {}

	public BarangStokModel(Long idBarangStok, BarangModel barang,
			Long stokMinimal, Long stokMaksimal) {
		this.idBarangStok = idBarangStok;
		this.barang = barang;
		this.stokMinimal = stokMinimal;
		this.stokMaksimal = stokMaksimal;
	}

	public Long getIdBarangStok() {
		return idBarangStok;
	}

	public void setIdBarangStok(Long idBarangStok) {
		this.idBarangStok = idBarangStok;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public Long getStokMinimal() {
		return stokMinimal;
	}

	public void setStokMinimal(Long stokMinimal) {
		this.stokMinimal = stokMinimal;
	}

	public Long getStokMaksimal() {
		return stokMaksimal;
	}

	public void setStokMaksimal(Long stokMaksimal) {
		this.stokMaksimal = stokMaksimal;
	}
}
